.messageContainer {
    background-color: #f5f5f5;
    min-height: 100vh;

    .navbar {
        background: linear-gradient(to right, #667eea, #764ba2);
        position: sticky;
        top: 0;
        z-index: 100;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: bold;
        color: white;
        
        .bellIcon {
            font-size: 24px;
            position: absolute;
            right: 16px;
        }
    }

    .messageList {
        padding: 12px;

        :global {
            .adm-list-item {
                margin-bottom: 8px;
                border-radius: 8px;
                background: #fff;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
                padding: 12px;

                .adm-list-item-content {
                    padding-left: 12px;
                }

                .adm-badge-wrapper {
                    padding-top: 8px;
                }

                .adm-badge {
                    width: 8px;
                    height: 8px;
                    border-radius: 50%;
                }
            }
        }

        .messageItem {
            position: relative;
            padding-left: 32px; // 为未读标记留出空间
        }

        .messageIcon {
            width: 8px;
            height: 40px;
            display: flex;
            align-items: flex-start;
            padding-top: 6px;
        }

        .messageHeader {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }

        .messageType {
            font-size: 14px;
            color: #1677ff;
            background: rgba(22, 119, 255, 0.1);
            padding: 2px 8px;
            border-radius: 4px;
        }

        .messageTime {
            font-size: 12px;
            color: #999;
        }

        .messageContent {
            .messageTitle {
                font-size: 15px;
                font-weight: 500;
                color: #333;
                margin-bottom: 4px;
            }

            .messageText {
                font-size: 13px;
                color: #666;
                line-height: 1.4;
                margin-top: 4px;
            }
        }

        .avatarWrapper {
            position: relative;
            margin-right: 12px;

            .avatar {
                width: 40px;
                height: 40px;
                border-radius: 20px;
                object-fit: cover;
            }

            .status {
                position: absolute;
                right: 0;
                bottom: 0;
                width: 10px;
                height: 10px;
                border-radius: 50%;
                border: 2px solid #fff;

                &.online {
                    background: #52c41a;
                }

                &.offline {
                    background: #d9d9d9;
                }

                &.busy {
                    background: #faad14;
                }
            }
        }

        .chatInfo {
            flex: 1;
            overflow: hidden;

            .topLine {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 4px;

                .name {
                    font-size: 16px;
                    font-weight: 500;
                    color: #333;
                }

                .time {
                    font-size: 12px;
                    color: #999;
                }
            }

            .bottomLine {
                display: flex;
                justify-content: space-between;
                align-items: center;

                .lastMessage {
                    font-size: 14px;
                    color: #666;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    max-width: 80%;
                }
            }
        }
    }

    .emptyContainer {
        padding: 24px 16px;  // 减小上下内边距
        text-align: center;
        background: #fff;
        margin: 12px;        // 添加外边距
        border-radius: 8px;   // 添加圆角
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);  // 添加轻微阴影
        width: 85vw;
        .emptyText {
            color: #999;
            font-size: 14px;
            .emptySubText {
                margin-top: 4px;  // 减小间距
                font-size: 12px;
                color: #bbb;
            }
        }

        :global {
            .adm-empty-image {
                width: 80px;     // 减小图片尺寸
                height: 80px;
                margin-bottom: 12px;  // 添加底部间距
            }
        }
    }

    .loading {
        padding: 20px;
        text-align: center;
        color: #999;
        background: #fff;
    }
}

.noCourses {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;  // 设置高度
    background: rgba(255, 255, 255, 0.8);  // 半透明背景
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);  // 添加阴影
    color: #666;
    font-size: 16px;
    text-align: center;
    padding: 20px;  // 添加内边距
    margin: 16px;  // 添加外边距
}

.emptyContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    height: auto;  // 改为自适应高度
    width: 100%;
} 